package com.chtw.oasystem.service;

import com.chtw.oasystem.respBean.TrainResp;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpSession;

/**
 * @author chenhao03
 * @create 2020-11-21 14:18
 */
public interface TrainService {
    PageInfo<TrainResp> list(String search, int page, int size);
    TrainResp info(int id);
    boolean create(HttpSession session, TrainResp train);
    boolean edit(HttpSession session, TrainResp train);
    boolean delete(HttpSession session, int id);
}
